package com.day05;

/*
 *      测试类
 *
 * */
//用与对Computer这个类进行测试
public class ComputerTest {
    //main方法,程序的主入口,也是程序开始执行的地方
    public static void main(String[] args) {
        //创建对象
        Computer c = new Computer();

        //给该对象的属性赋值
        c.brand = "华为";
        c.type = "MateBook D14 SE版";
        c.size = 14;
        c.cpu = "i5";
        c.memory = 8;
        c.color = "银";
        c.price = 3599.0;
        c.weight = 2.15;

        //调用方法展示该对象的信息
        c.show();

        //调用其他成员方法
        c.playGame();
        c.qiaoDaiMa();
    }
}
